<template>
  <view class="container">
    <!-- Login Section with Click Event -->
	<view class="record-section" @click="goToLogin">
		<view class="login-content">
		  <image @click="goToLogin" src="/static/img/login.png"  class="login-icon"></image>
		  <view class="login-text">
		    点击登录
		    <view class="welcome-text">欢迎来到袁隆平杂交水稻科学园</view>
		  </view>
		</view>
	</view>
    

    <!-- Appointment Record Section -->
	<view class="record-section">
		<view class="appointment-section">
		  <view class="appointment-title">预约记录</view>
		  <view class="no-record">
		    <image src="/static/img/zanwu.png" class="no-record-icon"></image>
		    <view class="no-record-text">暂无预约记录</view>
		  </view>
		</view>
	</view>
    

  </view>
</template>

<script >
export default {
  methods: {
    goToLogin() {
      uni.navigateTo({
        url: '/pages/login/login' // 确保路径正确
      });
    },
    navigateToBooking() {
      uni.showToast({
        title: '跳转到线上预约',
        icon: 'none'
      });
    },
    navigateToRecords() {
      uni.showToast({
        title: '跳转到预约记录',
        icon: 'none'
      });
    }
  }
}
</script>

<style>
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.header-title {
  font-size: 18px;
  font-weight: bold;
}

.header-icons {
  display: flex;
}

.login-content{
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 20px;
}

.login-icon {
  width: 50px;
  height: 50px;
  margin-right: 150px;
  margin-left: 150px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.login-text {
  font-size: 16px;
  text-align: center;
}

.welcome-text {
  color: #888;
  font-size: 12px;
  margin-top: 10px;
}

.appointment-section {
  flex: 1;
  padding: 20px;
}

.appointment-title {
	width: 60px;
height: 21px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 15px;
color: #323232;
letter-spacing: 0;
}

.no-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.no-record-icon {
  width: 141px;
  height: 130px;
  margin-right: 150px;
  margin-left: 150px;
}

.no-record-text {
  font-size: 14px;
  color: #888;
  margin-top: 13px;
  margin-bottom: 105px;
}


.record-section{
	margin-top: 20px;
	margin-left: 12px;
	margin-right: 12px;
	padding: 15px;
	background-color: #FFFFFF;
	border-radius: 12px;
}
</style>